/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package control;

/**
 *
 * @author Silex RPR
 */
public class FuncionesPotencia {
    
    public double calculateExponent(double number, double exponent){
        return Math.pow(number, exponent);
    }    
    
    public double calculateLogarithm(double number, double base){
        return Math.log(number) / Math.log(base);
    }
    
   
    public String parseData(String number, String coefficient){
        
        try {
            Double.valueOf(number);
            Double.valueOf(coefficient);
        }
        catch(Exception e){
            return "Es necesario colocar valores numericos.";
        }
        
        return "";
    }
    
}
